package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class SysModuleArg {
    private String pk_name = "MODULE_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<SysModuleCriteria> oredCriteria;

    public SysModuleArg() {
        oredCriteria = new ArrayList<SysModuleCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<SysModuleCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(SysModuleCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public SysModuleCriteria or() {
    	SysModuleCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public SysModuleCriteria createCriteria() {
    	SysModuleCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected SysModuleCriteria createCriteriaInternal() {
    	SysModuleCriteria criteria = new SysModuleCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<SysModuleCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<SysModuleCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<SysModuleCriterion> getAllCriteria() {
            return criteria;
        }

        public List<SysModuleCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new SysModuleCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new SysModuleCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new SysModuleCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new SysModuleCriterion(condition, value1, value2));
        }

        public SysModuleCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andModuleIdIsNull() {
            addCriterion("MODULE_ID is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdIsNotNull() {
            addCriterion("MODULE_ID is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdEqualTo(Integer value) {
            addCriterion("MODULE_ID =", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotEqualTo(Integer value) {
            addCriterion("MODULE_ID <>", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdGreaterThan(Integer value) {
            addCriterion("MODULE_ID >", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("MODULE_ID >=", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdLessThan(Integer value) {
            addCriterion("MODULE_ID <", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("MODULE_ID <=", value, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdLike(Integer value) {
            addCriterion("MODULE_ID like ", value, "MODULE_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotLike(Integer value) {
            addCriterion("MODULE_ID  not like ", value, "MODULE_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdLeftLike(Integer value) {
            addCriterion("MODULE_ID like ", value, "MODULE_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotLeftLike(Integer value) {
            addCriterion("MODULE_ID  not like ", value, "MODULE_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdRightLike(Integer value) {
            addCriterion("MODULE_ID like ", value, "MODULE_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotRightLike(Integer value) {
            addCriterion("MODULE_ID  not like ", value, "MODULE_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdIn(List<Integer> values) {
            addCriterion("MODULE_ID  in ", values, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotIn(List<Integer> values) {
            addCriterion("MODULE_ID not in ", values, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdBetween(Integer value1, Integer value2) {
            addCriterion("MODULE_ID between ", value1, value2, "MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("MODULE_ID not between ", value1, value2, "MODULE_ID");
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andModuleNameIsNull() {
            addCriterion("MODULE_NAME is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameIsNotNull() {
            addCriterion("MODULE_NAME is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameEqualTo(String value) {
            addCriterion("MODULE_NAME =", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotEqualTo(String value) {
            addCriterion("MODULE_NAME <>", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameGreaterThan(String value) {
            addCriterion("MODULE_NAME >", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameGreaterThanOrEqualTo(String value) {
            addCriterion("MODULE_NAME >=", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameLessThan(String value) {
            addCriterion("MODULE_NAME <", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameLessThanOrEqualTo(String value) {
            addCriterion("MODULE_NAME <=", value, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameLike(String value) {
            addCriterion("MODULE_NAME like ", value, "MODULE_NAME", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotLike(String value) {
            addCriterion("MODULE_NAME  not like ", value, "MODULE_NAME", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameLeftLike(String value) {
            addCriterion("MODULE_NAME like ", value, "MODULE_NAME", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotLeftLike(String value) {
            addCriterion("MODULE_NAME  not like ", value, "MODULE_NAME", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameRightLike(String value) {
            addCriterion("MODULE_NAME like ", value, "MODULE_NAME", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotRightLike(String value) {
            addCriterion("MODULE_NAME  not like ", value, "MODULE_NAME", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameIn(List<String> values) {
            addCriterion("MODULE_NAME  in ", values, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotIn(List<String> values) {
            addCriterion("MODULE_NAME not in ", values, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameBetween(String value1, String value2) {
            addCriterion("MODULE_NAME between ", value1, value2, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleNameNotBetween(String value1, String value2) {
            addCriterion("MODULE_NAME not between ", value1, value2, "MODULE_NAME");
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andModuleLevelIsNull() {
            addCriterion("MODULE_LEVEL is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelIsNotNull() {
            addCriterion("MODULE_LEVEL is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelEqualTo(Integer value) {
            addCriterion("MODULE_LEVEL =", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotEqualTo(Integer value) {
            addCriterion("MODULE_LEVEL <>", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelGreaterThan(Integer value) {
            addCriterion("MODULE_LEVEL >", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("MODULE_LEVEL >=", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelLessThan(Integer value) {
            addCriterion("MODULE_LEVEL <", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelLessThanOrEqualTo(Integer value) {
            addCriterion("MODULE_LEVEL <=", value, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelLike(Integer value) {
            addCriterion("MODULE_LEVEL like ", value, "MODULE_LEVEL", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotLike(Integer value) {
            addCriterion("MODULE_LEVEL  not like ", value, "MODULE_LEVEL", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelLeftLike(Integer value) {
            addCriterion("MODULE_LEVEL like ", value, "MODULE_LEVEL", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotLeftLike(Integer value) {
            addCriterion("MODULE_LEVEL  not like ", value, "MODULE_LEVEL", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelRightLike(Integer value) {
            addCriterion("MODULE_LEVEL like ", value, "MODULE_LEVEL", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotRightLike(Integer value) {
            addCriterion("MODULE_LEVEL  not like ", value, "MODULE_LEVEL", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelIn(List<Integer> values) {
            addCriterion("MODULE_LEVEL  in ", values, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotIn(List<Integer> values) {
            addCriterion("MODULE_LEVEL not in ", values, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelBetween(Integer value1, Integer value2) {
            addCriterion("MODULE_LEVEL between ", value1, value2, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andModuleLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("MODULE_LEVEL not between ", value1, value2, "MODULE_LEVEL");
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andParentModuleIdIsNull() {
            addCriterion("PARENT_MODULE_ID is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdIsNotNull() {
            addCriterion("PARENT_MODULE_ID is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdEqualTo(Integer value) {
            addCriterion("PARENT_MODULE_ID =", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotEqualTo(Integer value) {
            addCriterion("PARENT_MODULE_ID <>", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdGreaterThan(Integer value) {
            addCriterion("PARENT_MODULE_ID >", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PARENT_MODULE_ID >=", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdLessThan(Integer value) {
            addCriterion("PARENT_MODULE_ID <", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("PARENT_MODULE_ID <=", value, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdLike(Integer value) {
            addCriterion("PARENT_MODULE_ID like ", value, "PARENT_MODULE_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotLike(Integer value) {
            addCriterion("PARENT_MODULE_ID  not like ", value, "PARENT_MODULE_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdLeftLike(Integer value) {
            addCriterion("PARENT_MODULE_ID like ", value, "PARENT_MODULE_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotLeftLike(Integer value) {
            addCriterion("PARENT_MODULE_ID  not like ", value, "PARENT_MODULE_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdRightLike(Integer value) {
            addCriterion("PARENT_MODULE_ID like ", value, "PARENT_MODULE_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotRightLike(Integer value) {
            addCriterion("PARENT_MODULE_ID  not like ", value, "PARENT_MODULE_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdIn(List<Integer> values) {
            addCriterion("PARENT_MODULE_ID  in ", values, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotIn(List<Integer> values) {
            addCriterion("PARENT_MODULE_ID not in ", values, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_MODULE_ID between ", value1, value2, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andParentModuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_MODULE_ID not between ", value1, value2, "PARENT_MODULE_ID");
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (SysModuleCriteria) this;
        }
        public SysModuleCriteria andStaffIdIsNull() {
            addCriterion("STAFF_ID is null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdIsNotNull() {
            addCriterion("STAFF_ID is not null");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdEqualTo(Integer value) {
            addCriterion("STAFF_ID =", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("STAFF_ID <>", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdGreaterThan(Integer value) {
            addCriterion("STAFF_ID >", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID >=", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdLessThan(Integer value) {
            addCriterion("STAFF_ID <", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID <=", value, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 1);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdLeftLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotLeftLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 0);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdRightLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotRightLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 2);
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdIn(List<Integer> values) {
            addCriterion("STAFF_ID  in ", values, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("STAFF_ID not in ", values, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID between ", value1, value2, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

        public SysModuleCriteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID not between ", value1, value2, "STAFF_ID");
            return (SysModuleCriteria) this;
        }

    }

    public static class SysModuleCriteria extends GeneratedCriteria {

        protected SysModuleCriteria() {
            super();
        }
    }

    public static class SysModuleCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected SysModuleCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected SysModuleCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected SysModuleCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected SysModuleCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected SysModuleCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected SysModuleCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}